package com.codinghero.sae;

import java.io.File;

public class SaeLibInfo {

	public static void main(String[] args) {
		File dir = new File("E:\\private\\足球导航站\\sae-lib-1.0-allinone\\");
		File[] files = dir.listFiles();
		for (File file : files) {
			String artifactId = file.getName().substring(0, file.getName().indexOf(".jar"));
			System.out.println(
					"mvn install:install-file -DgroupId=com.sina -DartifactId="
							+ artifactId
							+ " -Dversion=1.0 -Dfile=\"E:\\private\\足球导航站\\sae-lib-1.0-allinone\\"
							+ file.getName()
							+ "\" -Dpackaging=jar -DgeneratePom=true");
		}

		System.out.println();
		for (File file : files) {
			String artifactId = file.getName().substring(0,
					file.getName().indexOf(".jar"));
			System.out.println("<dependency>\r\n"
					+ "<groupId>com.sina</groupId>\r\n"
					+ "<artifactId>"+artifactId+"</artifactId>\r\n"
					+ "<version>1.0</version>\r\n" + "</dependency>");
		}
	}

}
